package com.ph.shopping.facade.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.ph.shopping.common.core.base.BaseEntity;

@Table(name="ph_product_property")
public class PhProductProperty extends BaseEntity   implements Serializable {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = -6399437107240051555L;


    /** 属性名称 */
	@Column(name="propertyName")
	@NotBlank(message="[属性名称]不可为空")
   	@Length(max=100,message="[属性名称]最大长度为100个字符")
    private String propertyName;

    /** 商品分类id */
	@Column(name="classifyId")
    private Long classifyId;

	 /** 排序 */
	@Column(name="sort")
	private Integer sort;

	 /** 数据库里是 varchar类型 */
	@Column(name="createUser")
	private  String createUser;
	
    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName == null ? null : propertyName.trim();
    }

    public Long getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Long classifyId) {
        this.classifyId = classifyId;
    }

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
    
	
}